#include <iostream>
#include <vector>
#include <numeric>
#include "TObj.h"

using namespace std;
int gInt = 41;

void printHW ()
{
  std::cout << "hw" << std::endl;
}

void SetObj (TObj &t)
{
  t = TObj (1, 3);
}

vector<int> vs = {1, 3, 4, 5, 8, 9};
vector<int> v2 = {6, 7};

#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
#include <iostream>
int chufa (int numerator, int denominator)
{
  int result = 1;
  try
	{
	  if (denominator == 0)
		{
		  throw std::runtime_error ("Denominator cannot be zero.");
		}

	  result = numerator / denominator;
	}
  catch (std::exception &e)
	{
	  std::cout << "Exception caught: " << e.what () << std::endl;
	}
  return result;
}
int main ()
{
  int numerator, denominator;
  std::cout << "Enter numerator: ";
  std::cin >> numerator;
  std::cout << "Enter denominator: ";
  std::cin >> denominator;
  int res = chufa (numerator, denominator);
  cout << "res:" << res << "\n";
  return 0;
}

